import request from '@/utils/request'

// 查询试剂订单试剂类型详细数量列表
export function listOrderListDetail(query) {
  return request({
    url: '/product/orderListDetail/list',
    method: 'get',
    params: query
  })
}

// 查询试剂订单试剂类型详细数量详细
export function getOrderListDetail(orderListId) {
  return request({
    url: '/product/orderListDetail/' + orderListId,
    method: 'get'
  })
}

// 新增试剂订单试剂类型详细数量
export function addOrderListDetail(data) {
  return request({
    url: '/product/orderListDetail',
    method: 'post',
    data: data
  })
}

// 修改试剂订单试剂类型详细数量
export function updateOrderListDetail(data) {
  return request({
    url: '/product/orderListDetail',
    method: 'put',
    data: data
  })
}

// 删除试剂订单试剂类型详细数量
export function delOrderListDetail(orderListId) {
  return request({
    url: '/product/orderListDetail/' + orderListId,
    method: 'delete'
  })
}
// 删除试剂订单试剂类型详细数量
export function delOrderListDetailByOrderId(orderId) {
  return request({
    url: '/product/orderListDetail/delOrderListDetailByOrderId/' + orderId,
    method: 'delete'
  })
}

// 导出试剂订单试剂类型详细数量
export function exportOrderListDetail(query) {
  return request({
    url: '/product/orderListDetail/export',
    method: 'get',
    params: query
  })
}
